package com.seed.core.annotation;

import com.seed.core.enumeration.StatType;

import java.lang.annotation.*;

@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Repeatable(Stats.class)
public @interface Stat {
    String name();
    String label() default "";
    String comment() default "";
    StatType type() default StatType.count;
    String declare() default ""; // 统计申明
    String[] searches() default ""; // 统计条件
}
